"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Example1;

var _index = _interopRequireDefault(require("../../index"));

var _react = _interopRequireDefault(require("react"));

var _button = _interopRequireDefault(require("../../../button"));

var _components = require("@tarojs/components");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function Example1() {
  console.log(_index.default.info);
  return /*#__PURE__*/_react.default.createElement(_components.ScrollView, null, /*#__PURE__*/_react.default.createElement(_button.default, {
    onClick: function onClick() {
      return _index.default.info({
        content: '这是一条信息提示',
        onClose: function onClose() {
          console.log('close');
        }
      });
    }
  }, "Info"), /*#__PURE__*/_react.default.createElement(_button.default, {
    onClick: function onClick() {
      return _index.default.success({
        content: '这是一条成功提示'
      });
    }
  }, "Success"), /*#__PURE__*/_react.default.createElement(_button.default, {
    onClick: function onClick() {
      return _index.default.warning({
        content: '这是一条警告提示'
      });
    }
  }, "Warning"), /*#__PURE__*/_react.default.createElement(_button.default, {
    onClick: function onClick() {
      return _index.default.error({
        content: '这是一条异常提示'
      });
    }
  }, "Error"), /*#__PURE__*/_react.default.createElement(_button.default, {
    onClick: function onClick() {
      return _index.default.loading({
        content: '加载中 ...'
      });
    }
  }, "Loading"));
}